How to Sort an array of strings by length in Java